  import  React  from 'react'
  import { Link } from 'react-router-dom'

  export default class Main extends React.Component {
    render() {
      return (
        <div>
          <ul>
            <li><Link to="/main/test-id">嵌套路由1</Link></li>
            <li><Link to="/main/456">嵌套路由2</Link></li>
          </ul>
          {/* <div>
            <Link to="/cate1">分类1</Link>
          </div>
          <div>
            <Link to="/cate2">分类2</Link>
          </div>
          <div>
            <Link to="/cate3">分类3</Link>
          </div> */}
          {this.props.children}
        </div>
      )
    }
  }